All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.app.time.Tasking

java.lang.Object
   |
   +----quicktime.app.time.Tasking

public abstract class Tasking
extends Object
implements Taskable
This class implements most of the methods of the Taskable interface, providing an application a default implementation of this. The default Tasker for this object can be set by an application and doing so will move this Taskable object to that new TaskThread object and consequent calls to startTasking() will use the application set TaskThread.


Constructor Index

 o Tasking()

Method Index

 o addedToTasker(TaskThread)
This is called by a TaskThread when an object is added to a TaskThread.
 o getDefaultTasker()
Returns the default TaskThread that is used when this object is tasked.
 o getTasker()
This should return the task thread that the Taskable object is currently being tasked by or null if not being tasked.
 o removedFromTasker()
This is called by a TaskThread when an object is removed from a TaskThread.
 o setDefaultTasker(TaskThread)
This will set the default TaskThread that will be used by this object when the startTasking method is called.
 o startTasking()
This will start tasking the Tasking object by adding this object to the currently set default TaskThread and ensuring that this TaskThread object is started.
 o stopTasking()
This will stop tasking the Tasking object by removing it from its existing TaskThread.
 o task()
This method is defined as a method that is called periodically to perform tasks.

Constructors

 o Tasking
 public Tasking()

Methods

 o removedFromTasker
 public void removedFromTasker()
This is called by a TaskThread when an object is removed from a TaskThread. It is removedFrom the TaskThread that it was added to and a Taskable can only be in one TaskThread object.

Parameters:
t - the TaskThread
 o addedToTasker
 public void addedToTasker(TaskThread t)
This is called by a TaskThread when an object is added to a TaskThread. The parameter is the TaskThread that the object is being added to.

Parameters:
t - the TaskThread
 o getTasker
 public TaskThread getTasker()
This should return the task thread that the Taskable object is currently being tasked by or null if not being tasked.

Returns:
a TaskThread object or null.
 o startTasking
 public void startTasking()
This will start tasking the Tasking object by adding this object to the currently set default TaskThread and ensuring that this TaskThread object is started.

 o stopTasking
 public void stopTasking()
This will stop tasking the Tasking object by removing it from its existing TaskThread.

 o setDefaultTasker
 public void setDefaultTasker(TaskThread tasker)
This will set the default TaskThread that will be used by this object when the startTasking method is called. If the object is currently attached to a TaskThread this will remove it from that Thread and add it to the incoming TaskThread. It won't start the incoming TaskThread

Parameters:
tasker - the TaskThread to use for tasking
 o getDefaultTasker
 public TaskThread getDefaultTasker()
Returns the default TaskThread that is used when this object is tasked.

Returns:
a TaskThread object

All Packages  Class Hierarchy  This Package  Previous  Next  Index